﻿using System;
using System.Configuration;
using LogManager.Base;
using LogManager.Base.Data;
using System.Collections.Generic;

namespace LogManager.WebConfig
{      

    /// <summary>
    /// A configuration element that displays is the event log.
    /// </summary>
    public class LogConfiguration : ConfigurationElement
    {
        /// <summary>
        /// Name of the event log. Has to be identic on the machine.
        /// </summary>
        [ConfigurationProperty("logName", IsKey = true)]
        public string LogName
        {
            get { return (string)this["logName"]; }
            set { this["logName"] = value; }
        }

        /// <summary>
        /// Server of event log. The server has already to be configured.
        /// </summary>
        [ConfigurationProperty("serverName")]
        public string ServerName
        {
            get { return (string) this["serverName"]; }
            set { this["serverName"] = value; }
        }

        /// <summary>
        /// The type of the log
        /// </summary>
        [ConfigurationProperty("logType")]
        public string LogType
        {
            get { return (string)this["logType"]; }
            set { this["logType"] = value; }
        }
    }
}